package cn.itrip.biz.service.impl;

import cn.itrip.beans.dto.Dto;
import cn.itrip.beans.pojo.ItripAreaDic;
import cn.itrip.biz.service.ItripAreaDicService;
import cn.itrip.common.DtoUtils;
import cn.itrip.dao.mapper.ItripAreaDicMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ItripAreaDicServiceImpl implements ItripAreaDicService {
    @Resource
    private ItripAreaDicMapper itripAreaDicMapper;
    @Override
    public Dto listQueryHotcity(long id) throws Exception {
        List<ItripAreaDic> iad = itripAreaDicMapper.selectHotcity(id);
        return DtoUtils.getSuccesDto(iad);
    }
}
